(function() {
  var Controller, WinesContextController, WinesPageView,
    __hasProp = {}.hasOwnProperty,
    __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor; child.__super__ = parent.prototype; return child; };

  Controller = require('controllers/base/controller');

  WinesPageView = require('views/custom/wines_page_view');

  module.exports = WinesContextController = (function(_super) {

    __extends(WinesContextController, _super);

    WinesContextController.name = 'WinesContextController';

    function WinesContextController() {
      return WinesContextController.__super__.constructor.apply(this, arguments);
    }

    WinesContextController.prototype.historyURL = 'wines';

    WinesContextController.prototype.index = function(params) {
      console.debug('WinesController#index');
      console.debug('WinesController#params' + $(params));
      this.view = new WinesPageView;
      return this.view.render();
    };

    WinesContextController.prototype.showdetails = function(params) {
      return console.debug('WinesController#showdetails');
    };

    return WinesContextController;

  })(Controller);

}).call(this);
